@file:Suppress("unused")

package com.gitee.ixtf.core.exception

open class JError(
    private val errCode: String,
    private val errMsg: String? = null,
    private val params: Map<String, String>? = null,
) : Error() {
  override val message: String
    get() = errMsg ?: errCode
}

class JAuthenticationError : JError("JAuthenticationError")

class JAuthorizationError : JError("JAuthorizationError")
